home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1830.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  1.2 KB  |  12 lines

  1. Jim Roskind is the author of a yacc grammar for C++. It's roughly compatible with the portion of the language implemented by USL cfront 2.0.  Jim's grammar deviates from cfront (and the ARM) in a couple of what I understand to be minor ways.  Ultimately any deviation from a standard is unthinkable, but the number of real programs that are interpreted differently is relatively small, so the 'consequence' of the deviation is not great.
  2.  
  3. I have used Jim's grammar when a grad student wrote a C++ templatizer mechanism (reads ANSI-C++, spits out pre-templates C++), but my expertise does not include precise knowledge of where the grammar deviates from 'official'.  I have found it to parse most things correctly, but I am aware that there are differences.  (is that noncommittal enough? :-)
  4.  
  5. The grammar can be accessed by anonymous ftp from the following sites:
  6. * ics.uci.edu (128.195.1.1) in the ftp/gnu directory (even though
  7.   neither of the archives are GNU related) as:
  8.         c++grammar2.0.tar.Z and byacc1.8.tar.Z
  9. * mach1.npac.syr.edu (128.230.7.14) in the ftp/pub/C++ directory as:
  10.         c++grammar2.0.tar.Z and byacc1.8.tar.z
  11.  
  12. Jim Roskind can be reached at jar@hq.ileaf.com or  ...!uunet!leafusa!jar